﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SetUser.aspx.cs" Inherits="jnxcLogin.SetUser" enableEventValidation="false" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="Scripts/jquery-1.8.2.min.js"></script>
    <script src="Scripts/JsTools.js"></script>
    <link href="css/style.css" rel="stylesheet" type="text/css" />

     <script type="text/javascript">

         function OpenPop(val, w, h) {
             if (true == window.showModalDialog(val, window.self, "dialogwidth=" + w + ";dialogheight=" + h + ";resizable=yes")) {
                 __doPostBack('btn_reload', 'btn_reload_Click');
             }

         }

         function OpenPopWin(val, w, h) {
             //window.showModalDialog(val,window.self,"dialogwidth="+w+";dialogheight="+h+";")

             window.open(val, 'newwindow', "height=" + h + ",width=" + w + ",toolbar=yes,scrollbars=yes");
         }

    </script>
    <style type="text/css">
        .style1 {
            width: 100%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <fieldset name="Group2">
                <legend class="fole_end">用户管理</legend>
                <div class="dwhy_gl">
                    <table class="style1">
                        <tr>
                            <td style="text-align: right; width: 120px; height: 18px;">用户名：</td>
                            <td style="text-align: left;">
                                <asp:TextBox ID="txt_name" runat="server" Width="150px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txt_name" ErrorMessage="*请填写用户名" ForeColor="Red"></asp:RequiredFieldValidator>
                            </td>

                        </tr>
                        <tr>

                            <td style="text-align: right; width: 120px; height: 18px;">密&nbsp;码：</td>
                            <td style="text-align: left;">
                                <asp:TextBox ID="txt_pass" runat="server" Width="150px" TextMode="Password"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txt_pass" ErrorMessage="*请填写密码" ForeColor="Red"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>

                            <td style="text-align: right; width: 120px; height: 18px;">备&nbsp;注：</td>
                            <td style="text-align: left;">
                                <asp:TextBox ID="txt_remark" runat="server" Width="300px" Height="59px" TextMode="MultiLine"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>

                            <td style="text-align: right; width: 120px; height: 18px;"></td>
                            <td style="text-align: left;">

                                <asp:Button ID="btn_add" runat="server" OnClick="btn_add_Click" Text="添加用户" />

                            </td>
                        </tr>

                        <tr>

                            <td style="text-align: right; width: 120px; height: 18px;">&nbsp;</td>
                            <td style="text-align: left;">&nbsp;</td>
                        </tr>

                        <tr>

                            <td style="text-align: center; height: 18px;" colspan="2">
                                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="100%" AllowPaging="True" CellPadding="4" ForeColor="Black" GridLines="Vertical" OnPageIndexChanging="GridView1_PageIndexChanging" PageSize="20" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" OnRowCommand="GridView1_RowCommand">
                                    <PagerStyle CssClass="mypager" />
                                    <AlternatingRowStyle BackColor="White" />
                                    <Columns>
                                        <asp:TemplateField HeaderText="选择">
                                            <HeaderTemplate>
                                                <input id="cbo_checkAll" type="checkbox" onclick="checkall(this)" />全选
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <asp:CheckBox ID="cbo_check" runat="server" />
                                                <asp:Label ID="lbl_user_id" runat="server" Text='<%# Bind("user_id") %>' Visible="False"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="操作">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="lbn_bj" runat="server" CausesValidation="False" CommandArgument='<%# Bind("user_id") %>' CommandName="lbn_bj">编辑</asp:LinkButton>
                                                &nbsp;
                                                <asp:LinkButton ID="lbn_sq" runat="server" CausesValidation="False" CommandArgument='<%# Bind("user_id") %>' CommandName="lbn_sq">授权</asp:LinkButton>
                                                &nbsp;
                                                <asp:LinkButton ID="lbn_del" runat="server" CausesValidation="False" CommandArgument='<%# Bind("user_id") %>' CommandName="lbn_del">删除</asp:LinkButton>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="loginName" HeaderText="用户名" />
                                        <asp:TemplateField HeaderText="授权情况" Visible="False"></asp:TemplateField>
                                        <asp:BoundField DataField="remark" HeaderText="备注" />
                                    </Columns>
                                    <FooterStyle BackColor="#CCCC99" />
                                    <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" Height="25px" />
                                    <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" Height="28px" />
                                    <RowStyle BackColor="#F7F7DE" Height="20px" />
                                    <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                                    <SortedAscendingCellStyle BackColor="#FBFBF2" />
                                    <SortedAscendingHeaderStyle BackColor="#848384" />
                                    <SortedDescendingCellStyle BackColor="#EAEAD3" />
                                    <SortedDescendingHeaderStyle BackColor="#575357" />
                                </asp:GridView>
                            </td>
                        </tr>

                        <tr>

                            <td style="text-align: right; width: 120px; height: 18px;">&nbsp;</td>
                            <td style="text-align: left;">
                                &nbsp;</td>
                        </tr>

                        <tr>

                            <td style="text-align: right; width: 120px; height: 18px;">&nbsp;</td>
                            <td style="text-align: left;">
                                <asp:Button ID="btn_delAll" runat="server" OnClick="btn_delAll_Click" Text="删除选定项" CausesValidation="False" />
                            </td>
                        </tr>

                        <tr>

                            <td style="text-align: right; width: 120px; height: 18px;">&nbsp;</td>
                            <td style="text-align: left;">&nbsp;</td>
                        </tr>

                        <tr>

                            <td style="text-align: right; width: 120px; height: 18px;">&nbsp;</td>
                            <td style="text-align: left;">
                                <asp:Button ID="btn_reload" runat="server" OnClick="btn_reload_Click" Text="reload" Visible="False" CausesValidation="False" />
                            </td>
                        </tr>

                    </table>
                </div>
        </div>
    </form>
</body>
</html>
